from flask import Flask
from flask_cors import CORS
from app.user import userApi
from app.code import codeApi
from app.problem import problemApi


def create_app():
    app = Flask(__name__)
    app.register_blueprint(userApi)
    app.register_blueprint(codeApi)
    app.register_blueprint(problemApi)
    CORS(app)
    return app
